import {
  post,
  reqDelete
} from '@/utils/axios'

// 列表
export function listYsDepartmentControlPage(params) {
  return post('/ysDepartmentControl/listYsDepartmentControlPage', params)
}
// 删除
export function removeYsDepartmentControl(params) {
  return reqDelete('/ysDepartmentControl/removeYsDepartmentControl', params)
}

// 新增或编辑
export function updateYsDepartmentControl(params) {
  return post('/ysDepartmentControl/updateYsDepartmentControl', params)
}

// 下载模板
export function exportExcelYsDepartmentControlDemo(params) {
  return post('/ysDepartmentControl/exportExcelYsDepartmentControlDemo', params, {
    responseType: 'blob'
  })
}

// 导出
export function exportExcelYsDepartmentControl(params) {
  return post('/ysDepartmentControl/exportExcelYsDepartmentControl', params, {
    responseType: 'blob'
  })
}
// 导入
export function importExcelYsDepartmentControl(params) {
  return post('/ysDepartmentControl/importExcelYsDepartmentControl', params, {
    headers: { 'Content-Type': 'multipart/form-data' },
    responseType: 'blob'
  })
}
// 部门下拉
export function listYsDepartment(params) {
  return post('/ysDepartment/listYsDepartment', params)
}
